<tpl>
<div class="layui-fluid"><div class="layui-row layui-col-space15"><div class="layui-col-md12">
<div class="layui-card">
  <!--# include virtual="/lib/jump-top.html" -->
  <div class="layui-card-header">{{ d.title }}</div>
  <div class="layui-card-body">
    {{ d.headTip }}
    <form class="layui-form layui-form-pane" lay-filter="js-form">
      <input type="text" class="hide" name="unAutoSubmit" />
      <!-- {:token()} -->
      <div class="layui-inline">
        <!-- <label for="jsf-kword" class="layui-form-label">关键词</label> -->
        <div class="layui-input-inline" style="width: 200px;">
          <input type="text" id="jsf-kword" name="kword" class="layui-input" lay-require="true" required placeholder="菜单名">
        </div>
      </div>
      <!--# include virtual="/tpl/form-search.html" -->
    </form>
    <table id="demo" lay-filter="index-table"></table>
  </div>
</div>
</div></div></div>
</tpl>

<lay>
 <script type="text/html" id="toolbarDemo">
    <div class="block clearfix">
      <div class="layui-btn-group">
        <!--# include virtual="/tpl/a-add-parent.html" -->
        <!--# include virtual="/tpl/a-dels-check.html" -->
      </div>
      <a data-parent="0" class="{{# if( d.where.parent == 0 ){ }} hide {{# } }} layui-btn layui-btn-warm layui-btn-sm js-parent" title="最上级"><i class="fa fa-reply"></i></a>
    </div>
  </script>
  <script type="text/html" id="barDemo">
    <div class="layui-btn-group">
      <a data-href="{{ _rb.path }}/detail" data-params='"id":{{ d.id }}' class="layui-btn layui-btn-sm ajax-layer" title="查看详情"><i class="layui-icon layui-icon-username"></i>{{ L('detail') }}</a>
      <!--# include virtual="/tpl/a-edit.html" -->
      <!--# include virtual="/tpl/a-del-check.html" -->
    </div>
  </script>
  <script type="text/html" id="iconTpl">
    <i class="{{ d.icon }}"></i>
  </script>
  <script type="text/html" id="nameTpl">
    {{# if ( d.level < 3 ){  }}
      <a class="layui-table-link" data-params='"parent":{{ d.id }}'>{{ d.id }}</a>
    {{# }else{ }}  {{ d.id }}
    {{# } }}
  </script>
  <script type="text/html" id="showTpl">
    <form class="layui-form">
    <input type="checkbox" lay-filter="index-swith" data-id="{{ d.id }}" class="layer-msg no-refresh" data-field="show" {{# if(d.show){ }} checked  {{#  } }}
    lay-skin="switch">
    </form>
  </script>
</lay>

<js>
<!--# include virtual="/menu/indexMenu.js" -->
</js>